package com.heyu.cgsd.ui.activity

import com.heyu.cgsd.R
import com.heyu.cgsd.base.BaseActivity
import com.heyu.cgsd.util.SystemUtil
import kotlinx.android.synthetic.main.activity_about.*
import kotlinx.android.synthetic.main.title_bar_base.*

/**
 * Author:ZJC
 * Date:2020/2/7  15:55
 * Description:AboutActivity
 */
class AboutActivity : BaseActivity() {

    override fun initView() {
        img_back.setOnClickListener { finish() }
    }

    override fun initData() {
        tv_title!!.text = "关于"
        tv_version!!.text = """
            ${tv_version!!.text}
            V${SystemUtil.getVersionName()}
            """.trimIndent()
    }

    override fun getContentView(): Int? {
        setTitleBackground(BG_BLACK)
        return R.layout.activity_about
    }
}